package com.moji.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 首页相关
 * </p>
 *
 * @author myg
 * @since 2024-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="MjHomepage对象", description="首页相关")
public class MjHomepage extends Model<MjHomepage> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "类型名称")
    private String typeTitle;

    @ApiModelProperty(value = "类型副标题")
    private String typeSubtitle;

    @ApiModelProperty(value = "属性标题")
    private String attributeTitle;

    @ApiModelProperty(value = "id")
    private String solutionId;

    @ApiModelProperty(value = "属性副标题")
    private String attributeSubtitle;

    @ApiModelProperty(value = "图片地址")
    private String pictureUrl;

    @ApiModelProperty(value = "属性名称")
    private String attributeName;

    @ApiModelProperty(value = "1.解决方案 2.关于我们 3.产品服务")
    private Long type;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "富文本")
    private String content;

    @ApiModelProperty(value = "跳转链接")
    private String targetUrl;

    @ApiModelProperty(value = "前端需求")
    private String alt;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
